import ajax from '@/utils/request'

// 关键字搜索接口
// 发送关键字
export const getSuggestion = keyword => {
  return ajax({
    method: 'GET',
    url: '/app/v1_0/suggestion',
    params: {
      q: keyword
    }
  })
}
// 根据关键字查询数据结果
export const getSearch = (q, page = 1) => {
  return ajax({
    method: 'GET',
    url: '/app/v1_0/search',
    params: {
      q,
      page
    }
  })
}
